package com.koron.order.patrol.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.patrol.bean.po.PatrolEquipmentParamsPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 巡视工单-巡视点设备下参数从表(PatrolEquipmentParams)表服务接口
 *
 * @author zhouj
 * @since 2021-10-26 15:27:01
 */
public interface PatrolEquipmentParamsService {

    int insertOrUpdate(SessionFactory factory, PatrolEquipmentParamsPo patrolEquipmentParams);

    int insertOrUpdateBatch(SessionFactory factory, List<PatrolEquipmentParamsPo> patrolEquipmentParamsList);

    int insert(SessionFactory factory, PatrolEquipmentParamsPo patrolEquipmentParams);

    int insertBatch(SessionFactory factory, List<PatrolEquipmentParamsPo> patrolEquipmentParamsList);

    int update(SessionFactory factory, PatrolEquipmentParamsPo patrolEquipmentParams);

    int deleteById(SessionFactory factory, String id);

    PatrolEquipmentParamsPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, PatrolEquipmentParamsPo patrolEquipmentParams, PageQuery pageQuery);

    List<PatrolEquipmentParamsPo> queryList(SessionFactory factory, PatrolEquipmentParamsPo patrolEquipmentParams);

    List<PatrolEquipmentParamsPo> queryByPatrolEquipmentId(SessionFactory factory, String patrolEquipmentId);

}
